package com.ahy231.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ahy231
 * @date 2021/7/26 10:22
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户拥有车辆信息")
public class UserTruck {

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("user表车主id")
    private Long userId;

    @ApiModelProperty("车辆名称")
    private String name;

    @ApiModelProperty("车辆型号")
    private String type;

    @ApiModelProperty("车辆吨位")
    private Double weight;

    @ApiModelProperty("状态（1/空闲、2/忙碌）")
    private Integer status;
}
